@import '~@alife/aisc-core/purple/scss/index.scss';
@import '~@alife/aone-core/variables/index.scss';

// FIXME hack 云大使样式，活动下线后删除
.popupmode-title p {
  margin: 0;
}

#searcher_CONTAINER {
  width: 340px !important;
  // border: 1px solid #f9f9f9;
}
.history-overlay {
  // max-height: calc(100vh - 150px);
  overflow-y: auto;
  border-radius: 4px;
  background: #fff;
  .next-menu {
    max-height: inherit;
  }
  .next-menu-item-text {
    align-self: center;
  }
  .#{$teamix-prefix}tabs {
    padding: 0 16px;
    overflow: hidden;
  }

  .search-group-icon,
  .search-repo-icon {
    color: $gray-06;
    margin-right: 8px;
  }
}
.new-repo > span {
  display: inline-block;
  width: 100%;
  height: 100%;
}
.nav-new-menu-icon {
  margin-right: 8px;
  color: $gray-06;
}
.nav-create-cr {
  display: inline-block;
  width: 100%;
}

// 开放生态
.open-api-help {
  margin: 12px 8px;
  padding: 12px;
  background-image: url('https://img.alicdn.com/imgextra/i2/O1CN01nRokPI1sjp1sa79Tw_!!6000000005803-2-tps-432-144.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 3px;
  height: 80px;
  display: flex;
  align-items: center;
  color: $gray-06;
  cursor: pointer;
  &:hover {
    box-shadow: var(--card-hover-shadow, 1px 1px 4px 0px rgba(0, 0, 0, 0.13));
  }
  & > div {
    color: #262626;
  }
}

.open-api-ide-nav {
  .next-menu-item-text {
    display: flex;
    align-items: center;
  }
}

.open-api-dialog {
  .#{$teamix-prefix}dialog-body {
    height: 500px;
    overflow: hidden;
    margin-right: 0 !important;
    padding-right: 0;
    padding-bottom: 0;
    max-height: unset !important;
    // 隐藏滚动条
    // scrollbar-width: none; /* Firefox */
    // -ms-overflow-style: none;  /* IE 10+ */
    // &::-webkit-scrollbar {
    //   display: none; /* Chrome/Safari/Webkit */
    // }
  }
}

.open-api-dialog-content {
  margin-left: 163px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 20px;
  margin-top: -20px;
  margin-bottom: -20px;
  border-left: 1px solid #f0f0f0;
  height: 500px;
  overflow: auto;
  .sub-title {
    font-size: 14px;
    color: #575757;
    line-height: 28px;
    margin-bottom: 20px;
    .ul-disc {
      list-style-type: disc;
      margin-left: 20px;
      li {
        list-style-type: disc;
      }
    }
  }
  .integration {
    height: 220px;
    margin-bottom: 58px;
    position: relative;
    background-image: url('https://img.alicdn.com/imgextra/i4/O1CN01JQXebt1LY1VKdqHKV_!!6000000001310-2-tps-1440-442.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    span {
      position: absolute;
    }
    .codeup-icon {
      height: 120px;
      width: 120px;
      background-image: linear-gradient(180deg, #1f9aef 0%, #88d1ff 100%);
      box-shadow: 0 6px 24px 0 rgba(11, 101, 161, 0.24);
      border-radius: 16px;
    }
    &-card-group > div {
      display: flex;
    }
    > img {
      width: 100%;
      height: 100%;
    }
  }
}

// openapi组件样式
.open-api-title-com {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  &-line {
    flex: none;
    height: 16px;
    width: 1px;
    border: 1px solid #1b9aee;
    background: #1b9aee;
    margin-right: 13px;
  }
  &-title {
    font-weight: bold;
    height: 24px;
    font-size: 16px;
    color: #262626;
    line-height: 24px;
  }
}

.yunxiao-star {
  position: relative;
  top: -2px;
}

// 去除badge动画
.#{$teamix-prefix}badge-scroll-number-only {
  transition: none !important;
}
